<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>钛鑫精密</title>
  <link rel="stylesheet" href="css/swiper.4.4.2.min.css">
  <!-- <link rel="stylesheet" href="css/index.css"> -->
  <script src="js/jquery2.1.4.js"></script>
    <meta name="viewport" content="width=device-width">
  <script src="js/swiper.4.4.2.min.js"></script>
  <!-- <script src="js/index.js"></script> -->
<script>
;(function(doc, win, width){
    var docEl = doc.documentElement;
    var head = doc.getElementsByTagName("head")[0];
    var hFirst = head.firstChild || head.firstElementChild; 
    var cssEl = doc.createElement('style');
    //手机横屏，竖屏可在此处设置 
    var resizeEvt = 'orientationchange' in win ? 'orientationchange' : 'resize';
    var recalc = function() {   
        var x; 
        var n = win.devicePixelRatio;      
        if (n >= 3) {                
            x = 3;                    
        } else if (n >= 2){
            x = 2;
        } else {
            x = 1;
        }
        var clientWidth = docEl.clientWidth;
        if (!clientWidth) return;

        if(clientWidth>1200){
          clientWidth = 1200
        }
        var pxPerRem = 100*(clientWidth / width);
        cssEl.innerHTML = 'html{ font-size:' + pxPerRem + 'px!important; }';
        win.fontSize = pxPerRem;
        docEl.setAttribute("data-dpr", x);   //x 限制范围取值 1,2,3
        head.appendChild(cssEl);   

        if(win.resFn) win.resFn(pxPerRem)
    };
    if (!doc.addEventListener) return;
    win.addEventListener('resize', recalc, false);
    doc.addEventListener('DOMContentLoaded', recalc, false);
})(document, window,1200)
</script>
</head>

<style>
*{ margin:0; padding:0; box-sizing: border-box; list-style: none; }
html,body{
  width: 100%;
  height: 100%;
  font-family: "微软雅黑";
}
body{
  font-size: 0.16rem;
  opacity: 0;
}


body{
  background: url(imgs/bg2.jpg);
}
.wrap{
  position: relative;
  width: 12rem;
  margin:0 auto;
/*  border:1px solid red;*/
}
.wrap img{
  width: 100%;
}
.swiper-slide{
  overflow: hidden;
}


.banner{
  width: 100%;
  display: flex;
  justify-content: center;
}
.banner>div{
  flex:1;
}
.banner img{
  width: 12rem;
}

.item1 img{
  margin-top: -7%;
}


.item2{
  margin-top: 0.2rem;
}


.type_wrap{
  position: relative;
  height: 6rem;
}
.type_wrap ul{ 
  height: 30%;
  width: 100%;
  padding: 0.3rem 0;
}
.type_wrap ul li{
  width: 20%;
  height: 50%;
  float: left;
  display: flex;
  justify-content: center;
  align-items: center;
}
.type_wrap ul li span{
  display: inline-block;
  width: 1.6rem;
  padding:0.08rem 0;
  text-align: center;
  cursor: pointer;
  background: #fff;
  border:1px solid #eee;
}
.type_wrap ul li .active{
  background: #FF8F44;
}
.type_wrap_img{
  height: 70%;
  box-shadow: 0 0 0.2rem #ccc;
}
.type_wrap_img>div{
  position: relative;
  float: left;
  width: 16%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
}
.type_wrap_img>.active{
  width: 36%;
}
.type_wrap_img>div>div{
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
  transition: 0.3s;
}
.type_wrap_img>div:nth-child(1)>div{
  background: rgba(0,0,0,0.8);
}
.type_wrap_img>div:nth-child(2)>div{
  background: rgba(0,0,0,0.7);
}
.type_wrap_img>div:nth-child(3)>div{
  background: rgba(0,0,0,0.6);
}
.type_wrap_img>div:nth-child(4)>div{
  background: rgba(0,0,0,0.5);
}

.type_wrap_img>.active>div{
  background: rgba(0,0,0,0)!important;;
}
.type_wrap_img>div>span{
  position: absolute;
  width: 0.6rem;
  /*height: 50%;*/
  left: 0;
  top: 0;
  background: #f2f2f2;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.2rem;
  font-weight: bold;
  z-index: 2;
  transition: 0.3s;
  padding: 0.1rem 0.3rem;
  word-break:break-all;
  word-wrap:break-word;
}
.type_wrap_img>.active>span{
  background: #000;
  color: #FF8F44;
}
.type_wrap_img>div>img{
  width: 4.32rem;
  height: 100%;
}


.item4{
  margin-top: 1rem;
}
.item5{
  margin-top: 0.6rem;
}
.item6{
  margin-top: 0.7rem;
}
.item7{
  width: 12rem;
  margin:0.2rem auto;
}
.item7 img{
  height: 1.45rem;
}

.item9{
  width: 12rem;
  margin:0 auto;
}
.item9 img{
  height: 2rem;
}
  .about_us{
    /*display: flex;*/
    overflow: hidden;
    background: #fff;
  }
  .about_us>div{
    float: left;
    width: 50%;
    padding: 0.2rem;
    line-height: 2;
    font-size: 16px;
  }
  .about_us>div img{
    width: 100%;
    height: auto;
  }
  .item9 .swiper{
    margin-top: 0.3rem;
    background: #fff;
  }

.item10{
  background: #fff;
  overflow: hidden;
  font-size: 0.18rem;
  line-height: 1.8;
  margin-top: 0.3rem;
}
.item10>div{
  float: left;
}
.f_name{
  font-weight: 500;
  padding-left:0.2rem;
}
.flex_r{
  overflow: hidden;
  padding-left:0.2rem;
}
.flex_r span{
  float: left;
  color: #666;
}
.flex_r span:first-child{ width: 40%; }
.flex_r span:last-child{ width: 60%; }
.img_alt{
  color: #666;
  font-size: 0.14rem;
  line-height: 1.4;
}


  @media only screen and (max-width: 1000px) {
    .about_us>div{
      width: 100%;
    }
    .item10{
      font-size: 16px;
    }
  }
  @media only screen and (max-width: 768px) {
    .type_wrap{
      height: auto;
    }
    .type_wrap ul{
      overflow: hidden;
    }
    .type_wrap ul li{
      width: 50%;
    }
    .type_wrap ul li span{
      width: 80%;
    }
    .type_wrap_img{
      height: 5rem;
    }
    .about_us>div{
      font-size: 14px;
    }
    .item10{
      font-size: 14px;
    }
    .item10>div{
      width: 100% !important;
    }    
    .item10>div img{
      width: 50% !important;
    }
    .flex_r span{ width: 100% !important; }
    .img_alt{ font-size: 16px; padding: 20px; line-height: 2;}

    .item9 img{
      height: auto;
      width: 100%;
    }
    .item7 img{
      height: auto;
      width: 90%;
      margin-left: 5%;
    }
  }
</style>


<body>
<h1 style="display: none;">钛鑫精密</h1>

<div class="topbar" style="text-align: center;background: #fff;">
  <img src="imgs/topbar.png" style="width: 12rem;">
</div>

<div class="banner">
  <div style="background: #FD8230;"></div>
  <div class="img"><img src="imgs/banner.png" alt=""></div>
  <div style="background: #FFDD58;"></div>
</div>

<div class="wrap item1">
  <img src="imgs/item1.png">
</div>

<div class="wrap item2">
  <img src="imgs/item2.png">
</div>

<div class="wrap item3">
  <!-- <img src="imgs/bg.png" alt=""> -->
  <div class="type_wrap">
    <ul id="select">
      <li><span class="active">机械设备</span></li>
      <li><span>新能源</span></li>
      <li><span>LED显示屏</span></li>
      <li><span>建筑</span></li>
      <li><span>机器人</span></li>
      <li><span>无人机</span></li>
      <li><span>电力设备</span></li>
      <li><span>机电马达</span></li>
      <li><span>家电</span></li>
      <li><span>自行车</span></li>
    </ul>
    <div class="type_wrap_img" id="type_wrap_img">
    </div>
  </div>
</div>

<div class="wrap item4">
  <img src="imgs/item4.png">
</div>

<div class="wrap item5">
  <img src="imgs/item5.png">
</div>

<div class="wrap item6">
  <img src="imgs/item6.png">
</div>

<div class="item7">
  <div class="swiper swiper-container">
    <div class="swiper-wrapper">
      <div class="swiper-slide"><img src="imgs/logo/1.png" alt=""></div>
      <div class="swiper-slide"><img src="imgs/logo/2.png" alt=""></div>
      <div class="swiper-slide"><img src="imgs/logo/3.png" alt=""></div>
      <div class="swiper-slide"><img src="imgs/logo/4.png" alt=""></div>
      <div class="swiper-slide"><img src="imgs/logo/5.png" alt=""></div>
      <div class="swiper-slide"><img src="imgs/logo/6.png" alt=""></div>
      <div class="swiper-slide"><img src="imgs/logo/7.png" alt=""></div>
      <div class="swiper-slide"><img src="imgs/logo/8.png" alt=""></div>
    </div>
  </div>  
</div>

<div class="wrap item8">
  <img src="imgs/item8.png">
</div>

<div class="item9">
  <div class="about_us about_us1">
    <div>
      深圳市钛鑫精密科技有限公司拥有一批优秀的技术人才，从事紧固件行业十五年，有着优秀的研发生产制造能力，
      对钛，不锈钢，碳钢，合金钢，铜，铝等材质生产的标准件，非标件有着非常丰富生产制造经验，在客户的紧固件使用过程当中，可以给出实践性建议，帮助客户规避风险。钛鑫精密一直以来觉得螺丝虽小，但关系到整个产品的安全和寿命，
      让客户用的安心，减少浪费，提高工作效率是钛鑫一直以来赖以生存的根本。钛鑫精密本着服务至上，品质优良，
      精细管理的理念，希望能让每一个和钛鑫合作的客户感到超值的服务，钛鑫的发展离不开您的支持，愿在以后的道路上有您的扶持，共同成长！
    </div>
    <div><img src="imgs/item9.png"></div>
  </div> 
  <div class="swiper swiper-container">
    <div class="swiper-wrapper">
      <div class="swiper-slide"><img src="imgs/bottom_swiper/1.jpg" alt=""></div>
      <div class="swiper-slide"><img src="imgs/bottom_swiper/2.jpg" alt=""></div>
      <div class="swiper-slide"><img src="imgs/bottom_swiper/3.jpg" alt=""></div>
      <div class="swiper-slide"><img src="imgs/bottom_swiper/4.jpg" alt=""></div>
      <div class="swiper-slide"><img src="imgs/bottom_swiper/5.jpg" alt=""></div>
      <div class="swiper-slide"><img src="imgs/bottom_swiper/6.jpg" alt=""></div>
      <div class="swiper-slide"><img src="imgs/bottom_swiper/7.jpg" alt=""></div>
      <div class="swiper-slide"><img src="imgs/bottom_swiper/8.jpg" alt=""></div>
      <div class="swiper-slide"><img src="imgs/bottom_swiper/9.jpg" alt=""></div>
      <div class="swiper-slide"><img src="imgs/bottom_swiper/10.jpg" alt=""></div>
    </div>
  </div>  
</div>

<div class="wrap item10">
  <div style="width: 80%;">
    <div class="f_name" style="margin-top: 0.2rem;">深圳市钛鑫精密科技有限公司</div>
    <div class="f_name" style="margin-bottom: 0.1rem;">SHENZHEN TAIXIN PRECISION TECHNOLOGY COLTD</div>
    <div class="flex_r">
      <span>电话：0755-85299651</span>
      <span>手机号码：133-4294-7053</span>
    </div>
    <div class="flex_r" style="margin-bottom: 0.2rem;">
      <span>邮箱：taixinjm@163.com</span>
      <span>地址：龙华区观澜牛湖裕新路吓围新村36号楼3楼
    </div>
  </div>
  <div style="position: relative;width: 20%;text-align: center;padding-bottom: 0.2rem;">
    <img src="imgs/item10.png" style="width: 1.5rem;">
    <div class="img_alt">扫码联系顾问<br>获取方案/报价</div>
  </div>
</div>
<script>
var arr = [
  ['半圆头十字','沉头十字防松螺丝','圆柱头内六角半牙长螺丝','圆柱头内六角防松螺丝','组合螺丝'],
  ['半圆头内六角螺丝','半圆头十字螺丝','沉头十字防松螺丝','圆柱头内六角螺丝','组134'],
  ['十字尖尾自攻螺丝','十字尖尾自攻螺丝1','十字尖尾自攻螺丝2','十字尖尾自攻螺丝3','组101'],
  ['半圆头十字尖尾自攻螺丝','外六角带介自攻自钻螺丝','圆柱头内六角','圆柱头内六角1','圆柱头内六角2'],
  ['BT头内六角自攻螺丝','半圆头十字防松螺丝','沉头十字防松螺丝','平头十字螺丝','圆柱头内六角螺丝'],
  ['BT头内六角自攻螺丝','平头内六角螺丝','圆柱头内六角CD纹防松螺丝','圆柱头内六角防松螺丝','圆柱头内六角自攻螺丝'],
  ['半圆头十字','沉头梅花螺丝','平头十字台阶螺丝','圆柱头内六角','圆柱头内六角防松螺丝'],
  ['半圆头十字带介螺丝','半圆头十字螺丝','半圆头十字螺丝1','外六角带介螺丝','圆柱头组合螺丝'],
  ['半圆头十字自攻','沉头十字防松螺丝','沉头十字螺丝','平头十字自攻','圆柱头Y型螺丝'],
  ['半圆头内六角','半圆头十字螺丝','异型半牙螺丝','圆柱头内六角','圆柱头内六角螺丝']
]
  setHTML(0, 'imgs/item1/');

  function setHTML(i,before_url){
    var html = `
    <div class="item"><span>${arr[i][0]}</span><div class="mask"></div><img src="${before_url}1.png"></div>
    <div class="item"><span>${arr[i][1]}</span><div class="mask"></div><img src="${before_url}2.png"></div>
    <div class="item"><span>${arr[i][2]}</span><div class="mask"></div><img src="${before_url}3.png"></div>
    <div class="item"><span>${arr[i][3]}</span><div class="mask"></div><img src="${before_url}4.png"></div>
    <div class="active item"><span>${arr[i][4]}</span><div class="mask"></div><img src="${before_url}5.png"></div>  
    `;
    $("#type_wrap_img").html(html)
  }

  $("#select li").click(function(){
    $(this).find('span').addClass('active')
    $(this).siblings().find('span').removeClass("active")
    var i = $(this).index();
    var before_url = 'imgs/item'+(i+1)+'/';
    setHTML(i,before_url)

  })

  $("#type_wrap_img").on('mouseover','.item',function(){
    $(this).addClass('active').siblings().removeClass('active')
  })

  // var swiper_width = window.fontSize*12;
  // $(".swiper-container").css('width',swiper_width+'px');
  


  // 底部logo轮播
  setTimeout(function(){
    var size = window.fontSize;
    var mySwiper = new Swiper('.swiper-container',{
      grabCursor : true,
      speed:3000,
      autoplay:true, 
      slidesPerView : size<=64 ? 1 : 4,
      spaceBetween : 10,
      loop:true,                        //环路
      speed:500,                        //滑动速度
      autoplay: {
        delay: 1000,                       //自动播放间隔
        disableOnInteraction:false,     //用户操作后继续自动播放
      },
    })
  },100)

$(function(){
  $('body').css('opacity',1)
})
</script>
</body>
</html>